UserTypeListComponent

abstract class UserTypeListComponent<T : User?>

This class creates and performs a view corresponding the user list area in Sendbird UIKit. since 3.0.0

Constructors

Link copied to clipboard
open fun UserTypeListComponent()
Constructor since 3.0.

Types

Link copied to clipboard
open class Params
A collection of parameters, which can be applied to a default View.

Functions

Link copied to clipboard
protected abstract fun getAdapter(): UserTypeListAdapter<T>
Returns the user list adapter.
Link copied to clipboard
open fun getRootView(): View
Returns the view created by onCreateView.
Link copied to clipboard
protected open fun onActionItemClicked(    @NonNull view: View,     position: Int,     @NonNull user: T)
Called when the action button of the item is clicked.
Link copied to clipboard
open fun onCreateView(    @NonNull context: Context,     @NonNull inflater: LayoutInflater,     @NonNull parent: ViewGroup,     @Nullable args: Bundle): View
Called after the component was created to make views.
Link copied to clipboard
protected open fun onItemClicked(    @NonNull view: View,     position: Int,     @NonNull user: T)
Called when the item of the user list is clicked.
Link copied to clipboard
protected open fun onItemLongClicked(    @NonNull view: View,     position: Int,     @NonNull user: T)
Called when the item of the user list is long-clicked.
Link copied to clipboard
protected open fun onUserProfileClicked(    @NonNull view: View,     position: Int,     @NonNull user: T)
Called when the profile view of the item is clicked.
Link copied to clipboard
protected open fun <A : UserTypeListAdapter<T>?> setAdapter(@NonNull adapter: A)
Sets the user list adapter.
Link copied to clipboard
open fun setOnActionItemClickListener(@Nullable actionItemClickListener: OnItemClickListener<T>)
Register a callback to be invoked when the action button of the item is clicked.
Link copied to clipboard
open fun setOnItemClickListener(@Nullable itemClickListener: OnItemClickListener<T>)
Register a callback to be invoked when the item of the user is clicked.
Link copied to clipboard
open fun setOnItemLongClickListener(@Nullable itemLongClickListener: OnItemLongClickListener<T>)
Register a callback to be invoked when the item of the user is long-clicked.
Link copied to clipboard
open fun setOnProfileClickListener(@Nullable profileClickListener: OnItemClickListener<T>)
Register a callback to be invoked when the profile view of the item is clicked.
Link copied to clipboard
open fun setPagedDataLoader(@NonNull pagedDataLoader: OnPagedDataLoader<List<T>>)
Sets the paged data loader for user list.

Properties

Link copied to clipboard
val params: UserTypeListComponent.Params

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard